import request from '@utils/request'
// 请求首页banner
const fetchBanner = () => request.get('/banner/list')
// 请求分类
const fetchCate = () => request.get('/shop/goods/category/all')
// 请求商品列表
const fetchItems = (params = {}) => request.post('/shop/goods/list', params)
// 请求商品详情
const fetchItemDetail = (id) => request.get('/shop/goods/detail', {
  params: {
    id
  }
})
export {
  fetchBanner,
  fetchCate,
  fetchItems,
  fetchItemDetail
}
